def print_name(path):
    # path="D:\CodePartice\demo"
    path_Reverse = path[::-1]
    # print(path_Reverse)
    isIn = path_Reverse.find('\\')
    # print(isIn)
    project = path_Reverse[0:isIn]
    a = project[::-1]
    return a

# path_project = "D:\CodePartice\demo"
# print_name(path_project)
